<%-- 
    Document   : categories
    Created on : Jun 21, 2012, 3:19:35 PM
    Author     : Owner
--%>

<%--
<%if (Long.parseLong(String.valueOf(session.getAttribute("loginRoleId"))) == 0) {%>
<%@include file="/jsp/top.jsp"%>
<%} else if (Long.parseLong(String.valueOf(session.getAttribute("loginRoleId"))) == 1) {%>
<%@include file="/jsp/userTop.jsp"%>
<%} else if (Long.parseLong(String.valueOf(session.getAttribute("loginRoleId"))) == 2) {%>
<%@include file="/jsp/adminTop.jsp"%>
<%}%>--%>

<%@include file="/jsp/top.jsp"%>

<html>
    <head>
        <title>Online Store</title>
    </head>
    <body>
        <div class="clear"></div>
        <table cellspacing="5px" width="100%" align="center">
            <tr>
                <td>
                    <table cellspacing="5px" width="100%" align="center">
                        <tr>
                            <td style="vertical-align: top;" width="20%"><%@include file="/jsp/right.jsp" %></td>
                            <td style="vertical-align: top;" width="80%">
                                <table width="100%" cellspacing="10px" align="center">
                                    <tr>
                                        <td><h2>CATEGORIES</h2></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div style="float: left;width: 100%;">
                                                <logic:present name="CategoryList" scope="request">
                                                    <logic:iterate id="categories" name="CategoryList" scope="request">
                                                        <div style="float: left;width: 33% ">
                                                            <table align="center" width="100%" cellspacing="10px">
                                                                <tr>
                                                                    <td colspan="2" align="center">
                                                                        <a href="./product.do?action=showProductByCategory&categoryId=<bean:write name="categories" property="categoryId"/>&categoryName=<bean:write name="categories" property="categoryName"/>">
                                                                            <img alt="" src="category/<bean:write name="categories" property="categoryImageName"/>" width="150px" height="150px"/>
                                                                        </a>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="center"><a href="./product.do?action=showProductByCategory&categoryId=<bean:write name="categories" property="categoryId"/>&categoryName=<bean:write name="categories" property="categoryName"/>">
                                                                            <bean:write name="categories" property="categoryName"/></a></td>
                                                                    <td align="center">
                                                                        <a href="./product.do?action=showProductByCategory&categoryId=<bean:write name="categories" property="categoryId"/>&categoryName=<bean:write name="categories" property="categoryName"/>">
                                                                            <img width="30px" height="30px" alt="Go" src="images/subscribeButton.png" onmouseover="src='images/subscribeButtonOver.png'" onmouseout="src='images/subscribeButton.png'"/>
                                                                        </a>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>
                                                    </logic:iterate>
                                                </logic:present>
                                            </div>
                                        </td>
                                    </tr>
                                    <%-- --%>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="vertical-align: top;" width="80%"><%@include file="/jsp/footer.jsp" %></td>
            </tr>
        </table>
    </body>
</html>
